//
//  HMHomeRecommendCell.m
//  HowToDo
//
//  Created by 胡坤 on 2017/1/4.
//  Copyright © 2017年 KY. All rights reserved.
//

#import "HMHomeRecommendCell.h"

@interface HMHomeRecommendCell()
@property(nonatomic,strong)NSMutableArray* btnsList;
@end

@implementation HMHomeRecommendCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        
    }
    return self;
}


-(void)awakeFromNib
{
    [super awakeFromNib];


}

-(void)setImgUrlList:(NSArray *)imgUrlList
{
    _imgUrlList = imgUrlList;

    for (NSInteger i = 0; i< self.contentView.subviews.count; i++)
    {
        NSString* imgurl = imgUrlList[i];
        UIButton* btn = self.contentView.subviews[i];
        [btn sd_setImageWithURL:[NSURL URLWithString:imgurl] forState:UIControlStateNormal];
    }
}

-(NSMutableArray *)btnsList
{
    if (!_btnsList)
    {
        _btnsList = [NSMutableArray array];
    }
    return _btnsList;
}

@end
